menu: Only realize menu if it isn't realized yet
authorBenjamin Otte <otte@redhat.com>
Thu, 19 May 2011 10:51:13 +0000 (12:51 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 19 May 2011 11:04:19 +0000 (13:04 +0200)
commit3ecb308e569dc2107b44bd2572acfcc1da85a2eb
tree137e07315dd546864f54e6e75ca4ec50fc8aed9e
parent7a0600644c1bd38c8e212791679d2708ce6f2072
menu: Only realize menu if it isn't realized yet

Lots of code calls gtk_menu_popup() and we don't want to resize the
window needlessly.
In this particular case, keyboard navigation to submenus caused those
submenus to shrink.

Note: I'm not sure this fix doesn't have nasty side effects, as I'm not
a specialist on menu popup code, so if it does, we'll need to revert it.
Until then, let's keep it, it fixes a bug.
gtk/gtkmenu.c